<%@page import="com.shop2.entity.Admin"%>
<%@page import="com.shop2.service.java.AdminServiceImpl"%>
<%@page import="com.shop2.service.AdminService"%>

<%@page import="com.shop2.dao.admindao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
String uid = request.getParameter("username");
String pwd = request.getParameter("password");

AdminService admin1 =new AdminServiceImpl();
Admin admin = new Admin();
admin.setUsername(uid);
admin.setPassword(pwd);
boolean result = admin1.login(admin);
if(result)
{
	out.print("ok");
}
else
{
	out.print("dont ok");
}

%>

</body>
</html>